﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EFB.Web.Default" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <center>
        <table cellpadding="0" style="border: 1px solid gray;">
            <tr>
                <td align="center" colspan="3">Acesso</td>
            </tr>            
            <tr>
                <td align="right">
                    <asp:Label ID="Label1" runat="server" AssociatedControlID="LoginField">Login</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="LoginField" runat="server" Width="100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="LoginField" ErrorMessage="O login é obrigatório." 
                        ToolTip="Informe o login para prosseguir." ValidationGroup="LoginTemplate">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="PasswordField">Senha</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="PasswordField" runat="server" Width="100" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                        ControlToValidate="PasswordField" ErrorMessage="A senha é obrigatória." 
                        ToolTip="Informe a senha para prosseguir." ValidationGroup="LoginTemplate">*</asp:RequiredFieldValidator>
                </td>
            </tr>            
            <tr>
                <td align="right" colspan="2">
                    <asp:Button ID="LoginButton" runat="server" class="button" Text="Acessar" CommandName="Acessar" 
                        ValidationGroup="LoginTemplate" oncommand="LoginButton_Command" />
                </td>
            </tr>
        </table>
        <div style="padding: 5px 5px 5px 5px; width: 95%;">
            <div id="FailureContainer" visible="false" runat="server" style="color:Red; padding: 10px 10px 10px 10px; text-align:left; background-color: #FFFF99;">
                <asp:Label ID="FailureText" runat="server" Text="Label"></asp:Label>
            </div>
        </div>
    </center>
</asp:Content>
